﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ReportingService.aspx.cs"
    Inherits="CrmContacto.WebApp.App.ReportingService" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<%@ Import Namespace="Web.Framework.Translate" %>
<asp:Content ID="HeaderContent" ContentPlaceHolderID="HeadContent" runat="server">

    <link href="/Styles/App/ReportViewer.css" rel="stylesheet" type="text/css" />

     <style type="text/css">
        #<%= ReportServViewer.ClientID%>_fixedTable
        {
            width:100%;
        }
    </style>

</asp:Content>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="28800">
    </asp:ScriptManager>
    <div class="clear">
    </div>
    <div id="oReportDiv">
    <rsweb:ReportViewer ID="ReportServViewer" runat="server" Font-Names="Verdana" 
            Width="100%" ClientIDMode="Static"
         Font-Size="8pt" InteractiveDeviceInfos="(Collection)" ProcessingMode="Remote" ShowParameterPrompts="true"
        WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" 
            >
    </rsweb:ReportViewer>
    </div>
    <div class="clear">
    </div>

   

    <script type="text/javascript">

        $(document).ready(function () {

            $('.footer').remove();

        }
        );

       // $(document).ready(function () {

//            var tableReport = $('#<%= ReportServViewer.ClientID %> > table');
//            $(tableReport).attr('width', '100%');
            //alert('' + tableReport.length + tableReport.attr('id'));

      //  });


//        $(function () {

//            $('#<%= ReportServViewer.ClientID %> > iframe:eq(0)').bind('load', function () {
//                ReportViewerResize(this);
//            });

//        });

//        function ReportViewerResize(frame) {
//            alert('adfd');
//            var container = $('#<%= ReportServViewer.ClientID %>');
//            try {
//                var reportFrame = $(frame).contents().find('html')[0].document.frames["report"].document;
//                var reportHeight = $('#ReportServViewer > table > tbody > tr > td#oReportCell', reportFrame).height();
//                $(container).css({ height: '' + (reportHeight + 10) + 'px' });
//            } catch (e) { }
//        }

</script>
   

</asp:Content>
